translate = {
    'LANG': ['语言', 'Language'],
    'CONFIG': ['设置', 'Configuration'],
    'FILE': ['文件', 'File'],
    'FUNCTION': ['功能', 'Function'],
    'SAVE_CONFIG': ['保存配置', 'Save Config'],
    'LOAD_CONFIG': ['加载配置', 'Load Config'],
    'SAVE_DATA': ['保存本次数据', 'Save Curr. Data'],
    'HELP': ['帮助', 'Help'],
    'START': ['开始', 'Start'],
    'RECONNECT_REBAR': ['重连钢筋测量仪', 'Reconnect Rebar Detector'],
    'RECONNECT_VNA': ['重连VNA', 'Reconnect VNA'],
    'UPDATE_CALI_FILE': ['更新校准文件', 'Update Cali. File'],
    'STOP': ['停止', 'Stop'],
    'ABOUT': ['关于', 'About'],
    'DIAMETER_MEAS': ['直径测量', 'Diameter Meas.'],
    'DIAMETER_GUESS': ['直径估计', 'Diameter Guess'],
    'INI_FREQ': ['起始频率(Mhz)', 'Initial Freq.(Mhz)'],
    'END_FREQ': ['终止频率(MHz)', 'End Freq.(Mhz)'],
    'FREQ_PTS': ['频点数', 'Freq. Points'],
    'INTERMEDIA_FREQ_BW': ['中频带宽', 'Intermediate Freq. BW.'],
    'WORK_MODE': ['工作模式', 'Work Mode'],
    'REBAR_RANGE': ['钢筋仪量程', 'Rebar Detector Range'],
    'REBAR_DIAMETER': ['钢筋直径', 'Rebar Diameter'],
    'PROTECT_THICK': ['保护厚度', 'Protected Thickness'],
    'PERMITTIVITY': ['介电常数', 'Permittivity'],
    'REBAR_DETECTOR': ['钢筋仪器', 'Rebar Detector'],
    'RADAR': ['雷达', 'Radar'],
    'BOTH': ['同步', 'Synchro'],
    'S_RANGE': ['小量程', 'Small Range'],
    'B_RANGE': ['大量程', 'Big Range'],
    'RANGE_CHOOSE': ['量程选择', 'Range Chosen'],
    'CURR_THICK': ['当前厚度', 'Curr. Thickness'],
    'REAL_THICK': ['实际厚度', 'Real Thickness'],
    'RT_VOLTA': ['实时电压', 'RealTime Volt.'],
    'SHIFT': ['位移(mm)', 'Shift(mm)'],
    'COUNTER': ['计数', 'Count'],
    'SET_PARA': ['设置参数', 'Set Param.']
}

combox = {
    'LANG': ['中文', 'English'],
    'ZH': 0,
    'EN': 1,
    'FREQ_PTS': ['128', '201', '256', '512'],
    'INTERMEDIA_FREQ_BW': ['300', '1000', '3000', '10000', '30000'],
    'WORK_MODE': ['REBAR_DETECTOR', 'RADAR', 'BOTH'],
    'REBAR_RANGE': ['S_RANGE', 'B_RANGE'],
    'REBAR_DIAMETER': [str(i) for i in range(6, 32, 2)],
}
